--- import Article from '$layouts/Article.astro'; import { getCollection, render } from 'astro:content'; import { getDate, getLocale, getSlug } from '$lib/newsUtils'; export async function getStaticPaths() { return (await getCollection('news')).map((entry) => ({ params: { slug: getSlug(entry), locale: getLocale(entry), }, props: { entry }, })); } const { entry } = Astro.props; const { Content } = await render(entry); const publicationDate = getDate(entry); ---

{entry.data.title}